package org.wzl._360mallbackend.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.wzl._360mallbackend.dto.ShoppingCartDTO;
import org.wzl._360mallbackend.entity.Commodity;
import org.wzl._360mallbackend.entity.ShoppingCart;

import java.util.List;
import java.util.Map;

@Mapper
public interface ShoppingCartDao extends BaseMapper<ShoppingCart> {

    List<Map<String, Object>> getShoppingCartByUserId(@Param("id") Integer id);

    ShoppingCart getCommodityByUserIdAndComId(@Param("userId") Integer userId, @Param("comId") Integer comId);
}
